package tpase;

import tpase.StorageServer.Controller.StorageServerController;

public class Main {
    public static boolean isSetup = false;
    public static boolean isDebug = true;
    public static void main(String[] args) throws InterruptedException {
        storageServerStart();
    }

    private static void storageServerStart() throws InterruptedException {
        String configPath = "src/main/resources/config";
        StorageServerController storageServerController = new StorageServerController(configPath, isSetup, isDebug);
        if (isSetup == false) {
            storageServerController.setup();
        }

        if (isSetup == false) {
            Thread.sleep(3000);
        }

        storageServerController.start();
    }


}